Easy2Siksha Sample Paper
(GNDU) MOST REPEATED (IMPORTANT) QUESTIONS
BCA 3rd SEMESTER
Introducon to Python Programming
Repeated Quesons
1. Technical strengths / advantages of Python
• Frequency: 4 mes
• Years Appeared: 2021, 2022, 2023, 2024
2. Input from user / Taking numeric input in Python program
• Frequency: 3 mes
• Years Appeared: 2021, 2022, 2022, 2024
󹺔󹺒󹺓 2025 Smart Predicon Table For 2025
Based on 4-Year Queson Paper Analysis
Queson Topic
Repeats
Years Appeared
Priority
Level
Technical strengths of Python
4
2021, 2022, 2023,
2024
󽇐 Very
High
Lists in Python – creaon, access, append,
operators
4
2021, 2022, 2022,
2024
󽇐 Very
High
Easy2Siksha Sample Paper
(GNDU) MOST REPEATED (IMPORTANT) Answer
BCA 3rd SEMESTER
Introducon to Python Programming
Solved Answer
1. Technical strengths / advantages of Python
• Frequency: 4 mes
• Years Appeared: 2021, 2022, 2023, 2024
Ans: A Different Beginning The Café Conversation That Changed Everything
It’s a rainy afternoon. You’re sitting in a café, sipping chai, when your friend Priya walks in,
laptop in hand. She’s grinning.
You: “What’s got you so happy?” Priya: “I just built a working web app in two days… and I’m
not even a full-time developer.” You: “How is that even possible?” Priya: “Python.”
That’s the moment you realise — Python isn’t just another programming language. It’s a
toolbox, a teacher, and a teammate rolled into one. And the more you learn about it, the
more you understand why it’s loved by beginners, startups, scientists, and tech giants alike.
Let’s walk through the technical strengths and advantages of Python not as a dry list, but
as a journey.
1. Simplicity and Readability The “Plain English” of Code
Python’s syntax is famously clean and readable.
No curly braces {} to clutter your view.
No semicolons ; to remember.
Indentation isn’t just for looks — it defines code blocks.
Why this matters:
Beginners can focus on logic, not punctuation.
Teams can read and understand each other’s code quickly.
Maintenance becomes easier even months later, you can understand what you
wrote.
Example:
Easy2Siksha Sample Paper
if temperature > 30:
print("It's hot today!")
Looks almost like English, right?
2. Rapid Development From Idea to Prototype in Record Time
Python’s concise syntax and rich libraries mean you can build prototypes fast.
Startups love it because they can test ideas without months of coding.
Researchers love it because they can focus on experiments, not boilerplate code.
Real-world example: Instagram’s early backend was built in Python — allowing them to
scale quickly while iterating on features.
3. Cross-Platform Portability “Write Once, Run Anywhere”
Python is platform-independent.
Write your code on Windows, run it on Mac or Linux without changes.
This is possible because Python is an interpreted language the interpreter handles
platform differences.
Benefit: Saves time and effort when deploying across multiple systems.
4. Huge Standard Library Tools for Almost Everything
Python comes with a batteries-included philosophy.
Need to work with files? There’s os and shutil.
Need to parse JSON? There’s json.
Need to handle dates? There’s datetime.
This reduces dependency on external tools for common tasks.
5. Extensive Third-Party Libraries and Frameworks
Beyond the standard library, Python has a massive ecosystem:
Data Science: NumPy, Pandas, Matplotlib, SciPy.
Web Development: Django, Flask, FastAPI.
Machine Learning: TensorFlow, PyTorch, scikit-learn.
Automation: Selenium, BeautifulSoup, PyAutoGUI.
Why it’s powerful: You can stand on the shoulders of giants using pre-built, optimised
code instead of reinventing the wheel.
6. Dynamic Typing Flexibility in Code
Easy2Siksha Sample Paper
In Python, you don’t need to declare variable types:
python
x = 5 # integer
x = "five" # now a string
The type is determined at runtime.
Advantage:
Speeds up coding.
Makes scripts more adaptable.
Caution:
Flexibility requires discipline to avoid type-related bugs.
7. Interpreted Language Instant Feedback
Python code is executed line-by-line by the interpreter.
No long compile times.
Errors are caught immediately at runtime.
Benefit: Perfect for interactive development and quick testing.
8. Integration and Extensibility
Python plays well with others:
Can call C/C++ code for performance-critical tasks.
Can integrate with Java (via Jython) or .NET (via IronPython).
Can be embedded into other applications as a scripting language.
Example: Many 3D animation tools (like Blender) use Python for scripting.
9. Strong Community Support
Python has one of the largest programming communities in the world:
Millions of developers.
Thousands of tutorials, forums, and Q&A threads.
Active development and regular updates.
Impact: If you’re stuck, chances are someone has faced — and solved the same problem.
10. Versatility One Language, Many Domains
Easy2Siksha Sample Paper
Python isn’t tied to one niche:
Web apps (Django, Flask)
Data analysis (Pandas, NumPy)
AI/ML (TensorFlow, PyTorch)
Automation (scripts, bots)
Game development (Pygame)
IoT (MicroPython)
Result: Learn once, apply everywhere.
11. Open Source and Free
Python is free to use, modify, and distribute even for commercial purposes.
No licensing fees.
Source code is open for inspection and improvement.
12. High Productivity
Because of its simplicity, rich libraries, and fast prototyping, Python developers are often
more productive than in other languages.
Less code to write.
Easier debugging.
Faster iteration.
13. Strong Support for Data Science and AI
Python has become the lingua franca of data science:
Easy to learn for non-programmers (like statisticians).
Rich ecosystem for data manipulation, visualisation, and modelling.
Integration with Jupyter Notebooks for interactive exploration.
14. Readability Encourages Collaboration
In large projects, multiple developers work on the same codebase. Python’s readability:
Reduces onboarding time for new team members.
Minimises misunderstandings in code logic.
15. Future-Proof and In-Demand
Python consistently ranks among the top programming languages in demand.
Used by Google, NASA, Netflix, Spotify, and more.
Skills in Python open doors in multiple industries.
Easy2Siksha Sample Paper
Diagram Python’s Technical Strengths Map
Bringing It Together The Story’s End
Back in the café, Priya finishes her coffee and says:
“Python didn’t just help me build my app — it made me enjoy coding again.”
And that’s the real magic:
It’s technically strong enough for NASA.
It’s simple enough for a school student.
It’s versatile enough to power AI, websites, and automation scripts alike.
When you choose Python, you’re not just picking a language — you’re joining a global
movement of people who believe code should be powerful and human-friendly.
2. Input from user / Taking numeric input in Python program
• Frequency: 3 mes
• Years Appeared: 2021, 2022, 2022, 2024
Ans: A Different Beginning The Lemonade Stall Problem
It’s a sunny Sunday morning. You decide to set up a lemonade stall outside your house.
You’ve got lemons, sugar, and water ready — but here’s the catch: You want to let
customers decide how many glasses they want, and then your program will calculate the
total price.
Easy2Siksha Sample Paper
You sit down with your laptop and open Python. Your program needs to ask the customer
for a number that’s input from the user. And because the number will be used in a
calculation, it must be numeric input.
This simple lemonade stall is about to teach you one of the most important skills in Python:
taking numeric input from the user.
1. The Basics How Python Talks to People
In Python, the way to “talk” to a user is through the input() function.
input() pauses the program and waits for the user to type something.
Whatever the user types is returned as a string (text), even if they type numbers.
Example:
python
name = input("Enter your name: ")
print("Hello,", name)
If you type Ravi, the program prints:
Code
Hello, Ravi
2. The Twist Numbers Aren’t Numbers (Yet)
Here’s the tricky part: If you ask for a number using input(), Python still treats it as a string.
Example:
python
age = input("Enter your age: ")
print(type(age))
If you type 25, Python will say:
Code
<class 'str'>
That means it’s text, not a number — so you can’t do math with it yet.
3. Converting Strings to Numbers Type Casting
To turn that string into a number, you use type casting:
int() → for whole numbers (integers)
float() → for decimal numbers
Easy2Siksha Sample Paper
Example:
python
age = int(input("Enter your age: "))
print(type(age))
Now if you type 25, Python says:
Code
<class 'int'>
And you can do math:
python
print("Next year you will be", age + 1)
4. Back to the Lemonade Stall
Let’s write the lemonade program:
price_per_glass = 10
glasses = int(input("How many glasses of lemonade would you like? "))
total = price_per_glass * glasses
print("Your total is ₹", total)
If the customer types 3, the output is:
Your total is ₹ 30
5. Taking Decimal Input
Sometimes you need decimal numbers like if you’re asking for weight or price.
Example:
python
weight = float(input("Enter your weight in kg: "))
print("You weigh", weight, "kg")
If you type 65.5, Python stores it as a float.
6. Multiple Numeric Inputs in One Line
You can take more than one number at once using .split():
python
a, b = map(int, input("Enter two numbers separated by space: ").split())
print("Sum =", a + b)
If you type:
Easy2Siksha Sample Paper
5 7
Output:
Sum = 12
7. Validating Input Avoiding Crashes
If the user types something that’s not a number, int() or float() will cause an error. We can
handle this with try-except:
python
try:
age = int(input("Enter your age: "))
print("Next year you will be", age + 1)
except ValueError:
print("Please enter a valid number!")
8. The Flow of Taking Numeric Input
Here’s a simple diagram:
[Prompt user with input()]
[User types something]
[Python stores it as string]
[Convert string to int() or float()]
[Use the number in calculations]
9. Why This Matters in Real Programs
Taking numeric input is the foundation for:
Calculators
Billing systems
Games (scores, levels)
Data entry forms
Scientific calculations
Without it, your program can’t interact meaningfully with the user.
10. A Fun Example Mini Calculator
python
print("Welcome to Mini Calculator")
num1 = float(input("Enter first number: "))
num2 = float(input("Enter second number: "))
print("Sum =", num1 + num2)
print("Difference =", num1 - num2)
Easy2Siksha Sample Paper
print("Product =", num1 * num2)
print("Quotient =", num1 / num2)
11. Common Mistakes to Avoid
1. Forgetting to convert input to number → Leads to errors like "5" + "3" giving "53"
instead of 8.
2. Not handling invalid input → Program crashes if user types letters instead of
numbers.
3. Mixing int and float carelessly → Decide if you need whole numbers or decimals.
12. The Lemonade Stall Final Version with Safety Checks
python
price_per_glass = 10
try:
glasses = int(input("How many glasses of lemonade would you like? "))
total = price_per_glass * glasses
print("Your total is ₹", total)
except ValueError:
print("Oops! Please enter a valid number.")
Now your stall can handle polite customers and clumsy typists alike.
13. Why Python Makes This Easy
Simple syntax: input() is easy to remember.
Flexible conversion: int() and float() handle most needs.
Error handling: try-except keeps programs from crashing.
Multiple inputs: .split() and map() make it compact.
14. Real-World Analogy
Think of input() as a microphone:
It records whatever the user says (string).
If you need a number, you translate it into digits (int() or float()).
Then you can calculate or process it.
Conclusion
Taking numeric input in Python is like opening a conversation between your program and
the user but making sure you both speak the same “number language.” Once you master:
input() for capturing data
int() / float() for conversion
try-except for safety
…you can build interactive programs that feel alive.
Easy2Siksha Sample Paper
“This is only a part of the preparation journey.
For full access to repeated questions and detailed answers, purchase our
Premium Papers and boost your chances of scoring higher!”